/**
 * Created by Administrator on 2017/9/27.
 */
import {gbs} from '@/config/setting'
export default function(){
  window.tuoguan_tongji=[]

  window.WebSocketUrl=gbs.websocketUrl;

  var wechatInfo = navigator.userAgent.match(/MicroMessenger\/([\d\.]+)/i);

  window.userAgent=''
  if(wechatInfo){
    window.userAgent=wechatInfo[1]
  }

  var info={
    base_student_id:'',
    date:new Date(),
    router:window.location.hash.split('?')[0],
    api:'',
    agent:window.userAgent,
    way:'0'
  }
  window.tuoguan_tongji.push(info)
}
